/*头部*/

header {
  height: 51px;
  background-color: #ff841d;
  position: relative;
  text-align: center;
  line-height: 51px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  .arrows {
    width: 50px;
    height: 51px;
    float: left;
    line-height: 51px;
    text-align: center;
    color: #fff;
    font-size: 30px;
    font-weight: 600;
  }
  .app {
    position: absolute;
    top: 7px;
    right: 7px; // float: right;
    width: 34px;
    height: 34px; // margin-top: 7px;
    // margin-right: 7px;
    img {
      width: 100%;
    }
  }
  span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/*导航*/

nav {
  display: flex;
  height: 37px;
  border-bottom: 1px solid #ccc;
  flex-wrap: wrap;
  a {
    flex: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    i {
      font-style: normal;
    }
    span {
      font-size: 20px;
      margin-top: -5px;
      margin-left: 5px;
    }
    span:first-child {
      // display: none;
    }
    span:last-child {
      display: none;
      margin-top: 10px;
    }
  }
  >span {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 1px solid #ccc;
    color: #333;
  }
}

/*导航分类*/
.list {
  position: relative;
  .jd-list {
    display: none;
    position: absolute;
    top: 0;
    left: 0; 
    width: 100%;
    li {
      width: 100%;
      background-color: #fff;
      height: 40px;
      line-height: 40px;
      border-bottom: 1px solid #ccc;
      padding-left: 10px;
      color: #5a5a5a;
      position: relative;
    }
    li.now {
      &::after {
        content: '';
        color: red;
        width: 20px;
        height: 20px;
        background-image: url('../images/下载.svg');
        position: absolute;
        right: 20px;
        top: 10px;
        font-family: '黑体';
        font-size: 20px;
      }
    } 
  }
  .hb-list {
    display: none;
    position: absolute;
    top: 0;
    left: 0; 
    width: 100%;
    li {
      width: 100%;
      background-color: #fff;
      height: 40px;
      line-height: 40px;
      border-bottom: 1px solid #ccc;
      padding-left: 10px;
      color: #5a5a5a;
      position: relative;
    }
    li.now {
      &::after {
        content: '';
        color: red;
        width: 20px;
        height: 20px;
        background-image: url('../images/下载.svg');
        position: absolute;
        right: 20px;
        top: 10px;
        font-family: '黑体';
        font-size: 20px;
      }
    }
    
  }
  .price-list {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    li {
      width: 100%;
      background-color: #fff;
      height: 40px;
      line-height: 40px;
      border-bottom: 1px solid #ccc;
      padding-left: 10px;
      color: #5a5a5a;
    }
  }
}


/*内容部分*/

.product {
  padding: 10px;
  background-color: #f1f1f1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  li {
    width: 49%;
    background-color: #fff;
    margin-bottom: 10px;
    a {
      display: flex;
      flex-direction: column;
      align-items: center;
      img {
        width: 100%;
      }
      .title {
        font-size: 12px;
        margin-top: 5px;
        text-indent: 5px;
        width: 100%;
        /*溢出隐藏*/
        overflow: hidden;
        /*显示省略号*/
        text-overflow: ellipsis;
        /*不换行*/
        white-space: nowrap;
      }
      .product-b {
        width: 100%;
        margin-top: 5px;
        margin-bottom: 5px;
        .price {
          color: #f8601d;
          font-size: 20px;
        }
        .go {
          color: #fff;
          background-color: #ff9501;
          padding: 3px 5px;
          margin-right: 10px;
          border-radius: 5px;
          font-size: 14px;
        }
      }
    }
  }
}

